﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ApplyListMini.aspx.cs" Inherits="GRLMS.XingDai.Apply.ApplyListMini" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
     <link href="../../lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <link href="../../themes/gray/skin.css" rel="stylesheet" type="text/css" />
    <script src="../../lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/core/base.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script> 
     <script src="../../lib/ligerUI/js/plugins/ligerMenu.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerMenuBar.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerToolBar.js" type="text/javascript"></script>
    
    <script src="../../lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
    
         <script src="CustomersData.js" type="text/javascript"></script> 
         <script type="text/javascript">
     
        var grid = null;
        $(function () {
            grid = $("#maingrid4").ligerGrid({
                columns: [
                { display: '客户名称', name: 'CustomerID', align: 'left', width: 120 },
                { display: '业务员', name: 'CompanyName', minWidth: 60 },
                { display: '所属部门', name: 'ContactName', width: 140,align:'left' },
                { display: '登记时间', name: 'Address', minWidth: 140 },
                { display: '状态', PostalCode: 'PostalCode' }
                ],  pageSize:30,where : f_getWhere(),
                data: $.extend(true,{},CustomersData), 
                width: '100%',height:'100%'
            });
            
//<%--			
//客户名称	业务员	所属部门	登记时间	状态（取申请登记中的状态）					
//				跟进中					
//				中止					
//				已提交贷款申请					
//				申请被拒绝					
//				已立项					
//				管理层审批中					
//				审批同意					
//				合同已签订					
//				已放款					
//				已结清	--%>	
										

            $("#pageloading").hide();
        });
        function f_search()
        {
            grid.options.data = $.extend(true, {}, CustomersData);
            grid.loadData(f_getWhere());
             $.ligerDialog.open({ title:'新增登记',height: 600, url: 'Add.aspx', width: 800, showMax: true, showToggle: true, showMin: true, isResize: true, slide: false });
        }
        function f_getWhere()
        {
            if (!grid) return null;
            var clause = function (rowdata, rowindex)
            {
                var key = $("#txtKey").val();
                return rowdata.CustomerID.indexOf(key) > -1;
            };
            return clause; 
        }
        
       
  
        
     
        
    </script>
</head>
<body style="padding:0px; overflow:hidden;">
    <form id="form1" runat="server">
  
     <div style="padding:6px;">
    <div id="searchbar">

    客户名称：<input id="txtKey" type="text" />
  
    <input id="btnOK" type="button"  class="gr-button" value="转新增登记" style="width:65px;" onclick="f_search()" />
</div>
    <div id="maingrid4" style="margin:0;margin-top:5px; padding:0"></div>
   
	
  <div style="display:none;">
  <!-- g data total ttt -->
</div>
</div>
    </form>
</body>
</html>
